package com.yy.bolg.service;

import com.yy.bolg.entity.WorkOrderBean;

import java.util.List;

/**
 * 工单Service接口类，定义基本的对数据库数据操作
 * @author enamoFu
 * @date 2024-11-11
 */
public interface WorkOrderService {

    void add(WorkOrderBean bean) throws Exception;

    List<WorkOrderBean> findAllByCondition(WorkOrderBean bean) throws Exception;

    List<WorkOrderBean> findAllToIndex(WorkOrderBean bean) throws Exception;

    WorkOrderBean findOneByCode(WorkOrderBean bean) throws Exception;

    void dispatch(WorkOrderBean bean) throws Exception;

    void publish(WorkOrderBean bean) throws Exception;

    void arrive(WorkOrderBean bean) throws Exception;

    void accept(WorkOrderBean bean) throws Exception;

    void grabOrder(WorkOrderBean bean) throws Exception;

    void refuse(WorkOrderBean bean) throws Exception;

    void workAddTesting(WorkOrderBean bean) throws Exception;

    void workCompleteTesting(WorkOrderBean bean) throws Exception;

    void workCompleteRepair(WorkOrderBean bean) throws Exception;

    void endWorkOrder(WorkOrderBean bean) throws Exception;

    void doItAgainWorkOrder(WorkOrderBean bean) throws Exception;

    List<WorkOrderBean> findUnread(WorkOrderBean bean) throws Exception;

    void upUnread(WorkOrderBean bean) throws Exception;

    void upAppointUnread(WorkOrderBean bean) throws Exception;

}
